package com.ruoyi.project.mgr.teacher.service.impl;

import com.ruoyi.project.mgr.teacher.domain.MgrClazzTeacher;
import com.ruoyi.project.mgr.teacher.domain.MgrTeacher;
import com.ruoyi.project.mgr.teacher.mapper.MgrTeacherMapper;
import com.ruoyi.project.mgr.teacher.service.IMgrTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MgrTeacherServiceImpl implements IMgrTeacherService {

    @Autowired
    private MgrTeacherMapper mgrTeacherMapper;

    @Override
    public List<MgrTeacher> selectTeacherList(MgrTeacher mgrTeacher) {
        return mgrTeacherMapper.selectTeacherList(mgrTeacher);
    }

    @Override
    public int deleteClazz(Long clazzId, Long teacherId) {
        return mgrTeacherMapper.deleteClazz(clazzId, teacherId);
    }

    @Override
    public int insertMgrClazzTeacher(MgrClazzTeacher mgrClazzTeacher) {
        return mgrTeacherMapper.insertMgrClazzTeacher(mgrClazzTeacher);
    }
}
